package cn.hxzy.commonUser.service;

import cn.hxzy.common.Result;
import cn.hxzy.entity.userEntity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ao.Li
 * @since 2023-06-23
 */
public interface UserService extends IService<User> {
    Result login(User user);
    Result loginByCode(User user);

    Result logout();

    Result status(HttpServletRequest request, HttpServletResponse response);

    Result registered(User user);

//    远程调用 马奎志
//    User selectOneByPhone(String phone);

    /**
     * 修改密码
     * @param
     * @return
     */
    Boolean updatePwdById(String userId,String oldPwd, String newPwd);


    /**
     * 假登录
     * @param user
     * @return
     */
    User loginByPwd(User user);
}
